package com.ktjy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ktjy.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jjx
 * @since 2025-01-09
 */
public interface SysUserMapper extends BaseMapper<SysUser> {
    /**
     * 分页查询
     *
     * @param page
     * @param param
     * @return
     */
    public IPage<SysUser> getPage(Page<SysUser> page, @Param("param") Map<String, Object> param);

    /**
     * 根据用户名查询用户信息和角色信息
     * @param usrName
     * @return
     */
    public SysUser getByUsrName(@Param("usrName") String usrName);
}
